package _.mail.javax;

import java.io.Serializable;

import org.budo.mail.javax.MailAttachment;

/**
 * @author li
 * @version 1 (2015年8月11日 下午2:13:22)
 * @since Java7
 */
public class MailAttachmentImpl implements Serializable, MailAttachment {
    private static final long serialVersionUID = 7621481413044486580L;

    private String fileName;

    private byte[] bytes;

    public MailAttachmentImpl(String fileName, byte[] bytes) {
        this.fileName = fileName;
        this.bytes = bytes;
    }

    public String getFileName() {
        return fileName;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public String toString() {
        return super.toString() + ", fileName=" + this.getFileName() + ", bytes=" + String.valueOf(this.getBytes());
    }
}